import {PluginCommand} from "../Command/PluginCommand";

import {
    PluginCADToolFunctionType,
    PluginEventType,
    PluginFunctionType
} from "../../nodeApp/static/lib/crowncad-plugin-sdk-0.0.1";

class PointCloudCommand extends PluginCommand {
    constructor() {
        super();
    }

    uploadMeshBlob(params, cb = () => {
    }) {
        if (this.toolQuery) {
            this.toolQuery.uploadMeshBlob(params).then(res => {
                cb(res.data);
            })
        }
    }
}

const pcCommand = new PointCloudCommand();
export {pcCommand};